#ifndef _BBEVENT_H_
#define _BBEVENT_H_

#include "BBObject.h"

typedef enum
{
	bEventAdded,
	bEventRender,
	bEventEnterframe,
	bEventExitLOOP,
} bSystemEvent;


typedef enum
{
	bEventClick,
	bEventUP,
	bEventDown,
	bEventMoveIn,
	bEventMoveOut,
} bInterActionEvent;


typedef enum
{
	bEventNetConnect,
	bEventNetClose,
	bEventNetDataProgress,
	bEventError,
	bEventStatue,
}bNetEvent;


class BBEvent : public BBObject
{
public:
	BBEvent(int evt,int priority,bool useCapture = false);
	virtual ~BBEvent(void);
	BB_CREATE_PROPERTY(int,m_iEvtType,EventType)
	BB_CREATE_PROPERTY(bool,m_bUseCapture,UseCapture)
	BB_CREATE_PROPERTY(int,m_iPriority,Priority)
	BB_CREATE_PROPERTY(BBObject*,m_pTarget,Target);
	BB_CREATE_PROPERTY_BY_BOOL(m_bEnable,EventEnable);
};

#endif